<!--
 * @version: 
 * @Author: jiaqngzhen
 * @Company: aikucun
 * @Date: 2020-06-03 13:34:51
 * @LastEditors: jiaqingzhen
 * @LastEditTime: 2020-06-06 16:02:38
 * @Description: 
-->

<template>
  <div class="hot_venue_warp">
    <img
      v-for="(item, index) in list"
      :key="index"
      :src="item.hotConferenceImage"
      @click="getCurrentData(item)"
    />
  </div>
</template>
<script>
export default {
  name: 'hotVenue',
  props: {
    floorName: {
      type: String,
      default: ''
    }
  },
  data() {
    return {
      list: [
        {
          hotConferenceId: '便宜好货', // 热卖会场ID
          hotConferenceImage:
            'https://akmer.aikucun.com/mshop/6b7c2911f819000a69e48a0d0b16a4e56761fa58_1589008053531_84.jpg', // 热卖会场图片地址
          hotConferenceHref: 'xxxx', // 跳转链接
          seqNum: 1
        },
        {
          hotConferenceId: '便宜好货', // 热卖会场ID
          hotConferenceImage:
            'https://akmer.aikucun.com/mshop/6b7c2911f819000a69e48a0d0b16a4e56761fa58_1589008053531_84.jpg', // 热卖会场图片地址
          hotConferenceHref: 'xxxx', // 跳转链接
          seqNum: 1
        },
        {
          hotConferenceId: '便宜好货', // 热卖会场ID
          hotConferenceImage:
            'https://akmer.aikucun.com/mshop/6b7c2911f819000a69e48a0d0b16a4e56761fa58_1589008053531_84.jpg', // 热卖会场图片地址
          hotConferenceHref: 'xxxx', // 跳转链接
          seqNum: 1
        },
        {
          hotConferenceId: '便宜好货', // 热卖会场ID
          hotConferenceImage:
            'https://akmer.aikucun.com/mshop/6b7c2911f819000a69e48a0d0b16a4e56761fa58_1589008053531_84.jpg', // 热卖会场图片地址
          hotConferenceHref: 'xxxx', // 跳转链接
          seqNum: 1
        },
        {
          hotConferenceId: '便宜好货', // 热卖会场ID
          hotConferenceImage:
            'https://akmer.aikucun.com/mshop/6b7c2911f819000a69e48a0d0b16a4e56761fa58_1589008053531_84.jpg', // 热卖会场图片地址
          hotConferenceHref: 'xxxx', // 跳转链接
          seqNum: 1
        },
        {
          hotConferenceId: '便宜好货', // 热卖会场ID
          hotConferenceImage:
            'https://akmer.aikucun.com/mshop/6b7c2911f819000a69e48a0d0b16a4e56761fa58_1589008053531_84.jpg', // 热卖会场图片地址
          hotConferenceHref: 'xxxx', // 跳转链接
          seqNum: 1
        }
      ]
    };
  },
  methods: {
    getCurrentData(data) {
      console.error(data);
      this.$emit('goHref', data.hotConferenceHref);
    }
  }
};
</script>
<style lang="scss" scoped>
.hot_venue_warp {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 10px;
  box-sizing: border-box;
  img {
    width: 175px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 5px;
    &:nth-last-child(1),
    &:nth-last-child(2) {
      margin-bottom: 0;
    }
  }
}
</style>
